﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using DataMap;
using EFRepository;



namespace EFService
{
    public class TVBOProjectProgramService : ServiceBase<TVBOProjectProgramRepository, TVBOProjectProgram, TVBOProjectProgramDTO>
    {
        #region Properties

        #endregion
        #region Constructors

        #endregion
        #region Methods
        public override void GetQuery(string orderBy)
        {
            switch (orderBy)
            {
                case "TVBOProjectProgramID":
                default:
                    Query = this.Main.GetMainDataSource(x => x.TVBOProjectProgramID);
                    break;
                case "MediaCode":
                    Query = this.Main.GetMainDataSource(x => x.MediaCode);
                    break;
            }
        }
        #endregion
    }
}
